<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><!--
Content-type: Preventing XSRF in IE.

-->
<html>
<head>
   <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
   <meta http-equiv="Content-Script-Type" content="text/javascript" />
   <title>
     {% block title %} {{ app_name }} {% endblock title %}
   </title>
   <link rel="stylesheet" type="text/css" href="{{ media_url }}/css/style.css" />
   {% block innerhead %}{% endblock innerhead %}
</head>
{% block bodytag %}
<body>
{% endblock bodytag %}

{%- block header %}
{% endblock header -%}

<div id="container">
<div id="wrapper">
<div id="header">
  <div id="user">
    {% if request.user.is_anonymous() %}
    <a href="{{ create_login_url() }}">{{ _('Login') }}</a>
    {% else %}
    {{ _('Welcome')}}&nbsp;{{ request.user }}!
    <a href="{{ create_logout_url() }}">{{ _('Logout') }}</a>
    {% endif %}
  </div>
  {%- block banner %}
  <h2>
  <a href="{{ url_for('anti_patterns/index') }}">{{ app_name }}</a>
  </h2>
  {% endblock banner -%}
</div>
{%- block main %}
{% endblock main -%}
</div>
</div>

{%- block footer %}
<div id="footer">
  <p>CrowdBBS Copyright(C) Takashi Matsuo &lt;tmatsuo@candit.jp&gt;<br/>
  Powered by <a href="http://code.google.com/p/kay-framework/" target="_blank">Kay Framework</a>
</div>
{% endblock footer -%}

</body>
</html>
